{include file="index/head" /}
<div class="box">
  <form method="post" action="{:url('dels')}" id="listform" data-type=ajax>
    <input type="hidden" name="couponid" value="{$couponid}" />
    <div class="box-head">
      <ul class="search">  
								<li>			
        <span>关健字</span>
        <input type="text" class="intxt" name="title" placeholder="请输入手机号或呢称" />
        </li>
        <li>
        <button type="button" class="btn" onclick="sycms.search('{:url('index')}')"><i class="icon-search"></i> 搜索</button>
        </li>
      </ul>
      <a href="javascript:history.go(0);" class="btn fr"><i class="icon-refresh"></i> 刷新</a> </div>
    <table class="table">
      <tr>
        <th width="100">ID</th>
        <th>会员呢称</th>
								<th>会员手机</th>
        <th>会员状态</th>								
      </tr>
      {volist name="list" id="v"}
						{php}
						$res = db('memcoupon')->where(['memid'=>$v['id'],'couponid'=>$couponid])->find();
						if(empty($res)){
						{/php}
      <tr>
        <td class="td1"><input type="checkbox" name="id[]" value="{$v.id}" />{$v.id}</td>
        <td>{$v.name}</td>      
  					 <td>{$v.mobile}</td>
        <td>{if condition="$v.status eq 0"}<font color="#00CC99">正常</font>{else}锁定{/if}</td>
      </tr>
						{php}}{/php}
      {/volist}
						{if $list[0]}
      <tr>
        <td colspan="5"><ul class="operat">
            <li class="li1">
              <input type="checkbox" onclick="sycms.allselect(this)" />
              全选</li>
            <li><a href="javascript:void(0);" onclick="sycms.plattr('{:url('sendCoupon')}')" class="btn"><i class="icon-bullhorn"></i> 批量发放</a></li>
          </ul></td>
      </tr>
      <tr>
        <td colspan="5"><div class="page">{$page}</div></td>
      </tr>
						{/if}
    </table>
  </form>
</div>

